package storage

import (
	"gitee.com/alex_li/zangjingge/internal/midware"
	"github.com/lishimeng/app-starter/server"
)

func Router(root server.Router) {
	bucketApi := root.Path("/buckets")
	bucketApi.Get("/", midware.WithAuth(bucketList)...)

	docApi := root.Path("/docs")
	docApi.Get("/", midware.WithAuth(docList)...)
}
